debian/rules: Set CC/LD to enable cross-building
authorElliott Mitchell <ehem+debian@m5p.com>
Fri, 17 Jul 2020 02:07:31 +0000 (19:07 -0700)
committerHans van Kranenburg <hans@knorrie.org>
Sun, 28 Feb 2021 18:53:12 +0000 (19:53 +0100)
commite895047c966c0e6e2ac98ac2060f0c341ab4f4a2
treefcf9e17dad118db0a5ec6773cfd030eec6c20777
parent5694fef107f7607eac14f6d2059a0d6e8c604280
debian/rules: Set CC/LD to enable cross-building

Always set $(CC) and $(LD) when building.  This has no effect on native
builds, but is needed for cross-builds to use the right compiler.

Signed-off-by: Elliott Mitchell <ehem+debian@m5p.com>
[Hans van Kranenburg]
Note: instead of using DEB_HOST_MULTIARCH, we have to use
DEB_HOST_GNU_TYPE for CC. This commit is the 'second take' of commit
900c799589
Acked-by: Hans van Kranenburg <hans@knorrie.org>
debian/rules